package cn.wx.controller;


import cn.wx.domain.User;
import cn.wx.feignClient.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {

    @Autowired
    private UserFeignClient userFeignClient;


    @GetMapping("/pay/{id}")
    public User getUser(@PathVariable Long id ){
       return  userFeignClient.getUser(id);
    }


}
